import { Component, OnInit } from '@angular/core';

@Component({
      selector: 'app-views',
      templateUrl: './views.component.html',
      styleUrls: ['./views.component.scss']
})
export class ViewsComponent implements OnInit {

      public PostName;
      public isCollapsed: boolean = false;

      constructor( ) { }

      collapsed() {
            this.isCollapsed = !this.isCollapsed;
      }
      ngOnInit() {

            //获取用户信息
            // this.accountService.getAccountInfo().then(res => {

            //       res.Claims.forEach(element => {
            //             if (element["Key"] == "preferred_username") {
            //                   this.PostName = element['Value'];
            //             }
            //       });

            // }).catch(error => {
            //       console.log(error);
            // });

      }

}
